import service from '@/utils/request'

// @Tags SysStudent
// @Summary 创建SysStudent
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SysStudent true "创建SysStudent"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sysStudent/createSysStudent [post]
export const createSysStudent = (data) => {
  return service({
    url: '/sysStudent/createSysStudent',
    method: 'post',
    data
  })
}

// @Tags SysStudent
// @Summary 删除SysStudent
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SysStudent true "删除SysStudent"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sysStudent/deleteSysStudent [delete]
export const deleteSysStudent = (data) => {
  return service({
    url: '/sysStudent/deleteSysStudent',
    method: 'delete',
    data
  })
}

// @Tags SysStudent
// @Summary 删除SysStudent
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除SysStudent"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /sysStudent/deleteSysStudent [delete]
export const deleteSysStudentByIds = (data) => {
  return service({
    url: '/sysStudent/deleteSysStudentByIds',
    method: 'delete',
    data
  })
}

// @Tags SysStudent
// @Summary 更新SysStudent
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SysStudent true "更新SysStudent"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /sysStudent/updateSysStudent [put]
export const updateSysStudent = (data) => {
  return service({
    url: '/sysStudent/updateSysStudent',
    method: 'put',
    data
  })
}

// @Tags SysStudent
// @Summary 用id查询SysStudent
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.SysStudent true "用id查询SysStudent"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /sysStudent/findSysStudent [get]
export const findSysStudent = (params) => {
  return service({
    url: '/sysStudent/findSysStudent',
    method: 'get',
    params
  })
}

// @Tags SysStudent
// @Summary 分页获取SysStudent列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取SysStudent列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /sysStudent/getSysStudentList [get]
export const getSysStudentList = (params) => {
  return service({
    url: '/sysStudent/getSysStudentList',
    method: 'get',
    params
  })
}
